#include <asm.h>

ENTRY(_start)
    .option push
  	.option norelax
  	la gp, __global_pointer$
  	.option pop
    li tp,0
    
  /*# Clear BSS for flat non-ELF images */
  	/*la a3, __bss_start
  	la a4, __BSS_END__
  	ble a4, a3, clear
start:
  	sd zero, (a3)
  	addi a3, a3,8
  	blt a3, a4, start*/
clear:

  /*#setup C environment */
    
  /* #this should never return */
  	call main
  	call sys_exit
END(_start)
